package io.wongxd.solution.compose.custom.views.res

import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import io.wongxd.solution.R

/**
 * effect : 资源
 * warning:
 */
internal object Res {
    @Composable
    fun getRefreshLayoutLoadingPainter(): Painter =
        painterResource(id = R.drawable.w_solution_compose_views_refresh_layout_loading)

    @Composable
    fun getNoMoreDataString(): String = stringResource(R.string.compose_views_no_more_data)

    @Composable
    fun getLoadingString(): String = stringResource(R.string.compose_views_loading)

    @Composable
    fun getRefreshLayoutArrowPainter(): Painter =
        painterResource(id = R.drawable.w_solution_compose_views_refresh_layout_arrow)

    @Composable
    fun getRefreshCompleteString(): String =
        stringResource(id = R.string.compose_views_refresh_complete)

    @Composable
    fun getRefreshingString(): String =
        stringResource(id = R.string.compose_views_refreshing)

    @Composable
    fun getDropDownToRefreshString(): String =
        stringResource(id = R.string.compose_views_drop_down_to_refresh)

    @Composable
    fun getReleaseRefreshNowString(): String =
        stringResource(id = R.string.compose_views_release_refresh_now)

    @Composable
    fun getPasswordShowPainter(): Painter =
        painterResource(id = R.drawable.w_solution_compose_views_password_show)

    @Composable
    fun getPasswordHidePainter(): Painter =
        painterResource(id = R.drawable.w_solution_compose_views_password_hide)

    @Composable
    fun getStarSelectPainter(): Painter =
        painterResource(id = R.drawable.w_solution_star_bar_star_select)

    @Composable
    fun getStarPainter(): Painter = painterResource(id = R.drawable.w_solution_star_bar_star)
}